package com.ruoyi.wuyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wuyi.mapper.WyPigDiseaseMapper;
import com.ruoyi.wuyi.domain.WyPigDisease;
import com.ruoyi.wuyi.service.IWyPigDiseaseService;

/**
 * 猪病病症Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
@Service
public class WyPigDiseaseServiceImpl implements IWyPigDiseaseService 
{
    @Autowired
    private WyPigDiseaseMapper wyPigDiseaseMapper;

    /**
     * 查询猪病病症
     * 
     * @param id 猪病病症主键
     * @return 猪病病症
     */
    @Override
    public WyPigDisease selectWyPigDiseaseById(String id)
    {
        return wyPigDiseaseMapper.selectWyPigDiseaseById(id);
    }

    /**
     * 查询猪病病症列表
     * 
     * @param wyPigDisease 猪病病症
     * @return 猪病病症
     */
    @Override
    public List<WyPigDisease> selectWyPigDiseaseList(WyPigDisease wyPigDisease)
    {
        return wyPigDiseaseMapper.selectWyPigDiseaseList(wyPigDisease);
    }

    /**
     * 新增猪病病症
     * 
     * @param wyPigDisease 猪病病症
     * @return 结果
     */
    @Override
    public int insertWyPigDisease(WyPigDisease wyPigDisease)
    {
        return wyPigDiseaseMapper.insertWyPigDisease(wyPigDisease);
    }

    /**
     * 修改猪病病症
     * 
     * @param wyPigDisease 猪病病症
     * @return 结果
     */
    @Override
    public int updateWyPigDisease(WyPigDisease wyPigDisease)
    {
        return wyPigDiseaseMapper.updateWyPigDisease(wyPigDisease);
    }

    /**
     * 批量删除猪病病症
     * 
     * @param ids 需要删除的猪病病症主键
     * @return 结果
     */
    @Override
    public int deleteWyPigDiseaseByIds(String[] ids)
    {
        return wyPigDiseaseMapper.deleteWyPigDiseaseByIds(ids);
    }

    /**
     * 删除猪病病症信息
     * 
     * @param id 猪病病症主键
     * @return 结果
     */
    @Override
    public int deleteWyPigDiseaseById(String id)
    {
        return wyPigDiseaseMapper.deleteWyPigDiseaseById(id);
    }
}
